#include "include.h"
// starting position x/y
SpikeNeedle::SpikeNeedle(int xPosition, int yPosition)
{
   
    this->xPosition = xPosition;
    this->yPosition = yPosition;
    this->xResolution = 64;
    this->yResolution = 32;
    this->addFrames(1,"img/spikeproj.png", 0, 64, 32);
}

void SpikeNeedle::animate(int direction){
  switch (direction){
    case 1:
      this->moveObject(-18,(rand()%23)-20);
      break;
    case 2:
      this->moveObject(-18,(rand()%12)-6);
      break;
    case 3:
      this->moveObject(-18,(rand()%20)-3);
      break;
  }
}
